from django.urls import path, re_path, include
from minutesLine import views

# 定义自己的 URL
urlpatterns = [
    # path('', views.index, name='index'),
    # 第二个参数叫 name，是为了给当前 path 起名字，用于反向解析
    path('', views.index, name='index'),  # path 不识别正则
    path('test/', views.index, name='index'),  # path 不识别正则
    path('jsonDate/', views.jsonDate, name='jsonDate'),  # path 不识别正则
    path('computedResult/', views.computedResult, name='computedResult'),
    path('detail/', views.detail, name='detail'),

    # path('myExp/', views.myExp, name='myExp'),  # path 不识别正则

    # re_path(r'(\d+)', views.detail, name='detail'),  # 正则需要用 re_path
    # re_path(r'^(?P<id>[0-9]+)/$', views.detail, name='detail'),   # 正则命名组
    # path('', views.home, name='home'),
]
